<!--
 * @Description:变量的类型.
 * @Author: Sun
 * @Date: 2019-07-01 20:05:50
 * @LastEditors: Sun
 * @LastEditTime: 2019-07-01 22:12:28
 -->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>变量的类型</title>
	<style>
		#div input.active{background: yellow;}
		#divmo{width: 200px; height: 200px;background: #F1F1F1;}
		#divmo >div{display: none; width: 100%; height: 200px;}
		#divmo >div:first-child{display: block;}
	</style>
	<script>
		//闭包 子函数可以使用父函数的局部变量
		window.onload = function () {
		   //   function aa(){
					//  var a=12;
					//  function bb(){
					// 	 alert(a)
					//  }
					//  bb()
				 // }
				 // aa()
				 
				 // console.log(8%5)
				 
				 let arr={a:1,b:2,c:3,d:4,f:5,g:6}
				 for (let var1 in arr) {
				 	console.log(var1+"json循序"+"<br>")
				 }
				 
		}
		
	</script>
</head>

<body>
	<div>
			闭包 子函数可以使用父函数的局部变量 <br/>
			求余% 就是整除的余数<br/>
			json 没有length  for (let var1 in arr){}
	</div>
  <ul>
  	<li>number</li>
  	<li>string</li>
  	<li>boolean</li>
  	<li>undefined</li>
  	<li>object</li>
  	<li>function</li>
  </ul>


</body>

</html>